package org.qqcui.designpattern.patterns.template;


/**
 * 豆浆生产模板方法客户端
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/6 10:39
 **/
public class Client {

    public static void main(String[] args) {
        System.out.println("================制作红豆豆奶==================");
        SoyaMilk redBeanSoyaMilk = new RedBeanSoyaMilk();
        // 红豆豆浆
        redBeanSoyaMilk.make();

        // 花生豆奶
        System.out.println("==============制作花生豆奶===========");
        SoyaMilk peanutSoyaMilk = new PeanutSoyaMilk();
        peanutSoyaMilk.make();

        // 纯豆浆
        System.out.println("===============制作纯豆浆================");
        SoyaMilk pureSoyaMilk = new PureSoyaMilk();
        pureSoyaMilk.make();
    }
}
